package designPattern.filter.tomcatFilter;

public class SensitiveFilter implements Filter {

	@Override
	public void doFilter(Request request, Response response,
			FilterChain filterChain) {
		String requestStr = request.getRequestStr().replace("敏感", "**");
		request.setRequestStr(requestStr);
		// filterChain.doFilter(request, response, filterChain);

		String responseStr = response.getResponseStr().replace("敏感", "**");
		response.setResponseStr(responseStr);
	}

}
